﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using SqlSugar;

namespace UserModels
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    [Table("UserInfoModel")]
    public class UserInfoModel: AuditModel
    {
        /// <summary>
        /// 用户编号 1
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey =true,IsIdentity =true)]
        public int UserId { get; set; }
        /// <summary>
        /// 用户账号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string? UserAccount { get ; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string? UserName { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string? UserPass { get ; set; }
        /// <summary>
        /// 用户电话
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string? UserPhone { get ; set; }
        /// <summary>
        /// 用户邮箱
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string? UserEmail { get ; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int UserSex { get ; set; }
        /// <summary>
        /// 部门编号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int DeptId { get ; set; }
        /// <summary>
        /// 角色编号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int RoleId { get ; set; }
        /// <summary>
        /// 门店编号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int StoreId { get ; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public bool IsDelete { get ; set; }
    }
}